package com.we823.cms.common.web.pageable;

/**
 * Created by ZhangYinxian on 2016-10-20.
 */
public class Sort {
    private String column;
    private Direction direction;

    public Sort(){}

    public Sort(Direction direction, String column){
        this.setDirection(direction);
        this.setColumn(column);
    }

    public Sort(String ascOrDesc, String column){
        this(Direction.parse(ascOrDesc), column);
    }


    public String getColumn() {
        return column;
    }

    public void setColumn(String column) {
        this.column = column;
    }

    public Direction getDirection() {
        return direction;
    }

    public void setDirection(Direction direction) {
        this.direction = direction;
    }
}
